import {Http} from "../utils/http";

class Category {
    static async getHomeLocationC()
    {
        return await Http.request({
            url: `category/grid/all`
        })
    }

    static async getAll(){
        return await Http.request({
            url: `category/all`
        })
    }

    static async getOne(id)
    {
        return await Http.request({
            url: `category/${id}`
        })
    }
}

export {
    Category
}